export default async function({ targetTemp, rampRate }) {
  await new Promise(resolve => setTimeout(resolve, 2000)); // 模拟执行函数的时间
  console.log(`[KPMS] 温度设置: ${targetTemp} ℃ (速率: ${rampRate} ℃/min)`);
  return { actualTemp: targetTemp };
}

export const meta = {
  name: "设置温度",
  parameters: [
    {
      name: "targetTemp",
      type: "number",
      defaultValue: 25,
      unit: "℃",
      description: "目标温度"
    },
    {
      name: "rampRate",
      type: "number",
      defaultValue: 1,
      unit: "℃/min",
      description: "升温速率"
    }
  ]
};